<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script >
    // js递归求和1 - 100
    function add(num1, num2) {
        let num = num1 + num2
        if (num2 + 1 > 100) {
            return num
        } else {
            return add(num, num2 + 1)
        }
    }
    console.log(add(1, 2))  // 5050
</script>
